package com.hl.ruoyilkshop.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * SKU对象 sku
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class Sku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** SKU ID */
    private Integer skuId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer goodsId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Integer businessId;

    /** 规格类型JSON格式 */
    @Excel(name = "规格类型JSON格式")
    private String spec;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Integer goodsNumber;

    /** SKU价格 */
    @Excel(name = "SKU价格")
    private BigDecimal price;

    /** SKU编码 */
    @Excel(name = "SKU编码")
    private String skuCode;

    /** SKU图片 */
    @Excel(name = "SKU图片")
    private String image;

    /** 规格组合规范化键 */
    private String specKey;

    /** 规格组合规范化键的MD5 */
    private String specKeyHash;

    public void setSkuId(Integer skuId) 
    {
        this.skuId = skuId;
    }

    public Integer getSkuId() 
    {
        return skuId;
    }

    public void setGoodsId(Integer goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() 
    {
        return goodsId;
    }

    public void setBusinessId(Integer businessId) 
    {
        this.businessId = businessId;
    }

    public Integer getBusinessId() 
    {
        return businessId;
    }

    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }

    public void setGoodsNumber(Integer goodsNumber) 
    {
        this.goodsNumber = goodsNumber;
    }

    public Integer getGoodsNumber() 
    {
        return goodsNumber;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setSkuCode(String skuCode) 
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public String getSpecKey() {
        return specKey;
    }

    public void setSpecKey(String specKey) {
        this.specKey = specKey;
    }

    public String getSpecKeyHash() {
        return specKeyHash;
    }

    public void setSpecKeyHash(String specKeyHash) {
        this.specKeyHash = specKeyHash;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("skuId", getSkuId())
            .append("goodsId", getGoodsId())
            .append("businessId", getBusinessId())
            .append("spec", getSpec())
            .append("goodsNumber", getGoodsNumber())
            .append("price", getPrice())
            .append("skuCode", getSkuCode())
            .append("image", getImage())
            .append("specKey", getSpecKey())
            .append("specKeyHash", getSpecKeyHash())
            .toString();
    }
}
